-- GENERATED SPELL FOR [Stonevault Seer] --


function spell0_2892(pUnit, Event) --@Healing Wave,Heal--
pUnit:FullCastSpellOnTarget(11986,pUnit)
pUnit:RegisterEvent('Sorts_2892', 3000, 1)
end

function spell1_2892(pUnit, Event) --@Lightning Bolt,n/a--
pUnit:FullCastSpellOnTarget(9532,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2892', 3000, 1)
end

function Sorts_2892(pUnit, Event)
local choix_sorts_2892 = math.random(0, 1)
if choix_sorts_2892 == 0 then
pUnit:RegisterEvent('spell0_2892', 1, 1)
end
if choix_sorts_2892 == 1 then
pUnit:RegisterEvent('spell1_2892', 1, 1)
end
end

function mob2892_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2892', math.random(1500, 3000), 1)
end

function mob2892_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2892_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2892_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2892, 1, 'mob2892_Action')
RegisterUnitEvent(2892, 2, 'mob2892_Leave')
RegisterUnitEvent(2892, 3, 'mob2892_Kill')
RegisterUnitEvent(2892, 4, 'mob2892_Die')
